cmake_minimum_required(VERSION 3.0)
project(DetAPP)

add_definitions(-w)
#设置c++编译器
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )

set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)

#设定头文件目录
set(OpenCV_DIR "/home/lin/software/opencv-4.6.0/build")
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/include)

find_package(OpenCV  REQUIRED)
include_directories(OpenCV ${OpenCV_INCLUDE_DIR})


add_library(yolo SHARED src/yolo.cpp src/parameter.cpp)
target_link_libraries(yolo ${OpenCV_LIBS})



add_executable(main src/main.cpp)
target_link_libraries(main ${OpenCV_LIBS} yolo)
